<?php 
  require_once("../../includes/config.php"); 
  
  $sql = 'SELECT * FROM companies where owner_id = ?';

  $binds = array();
  
  $binds['owner_id'] = $_SESSION['user_id'];
  
  if(isset($_GET['f']))
    $f = 1;
  else
    $f = 0;
    
  $companies = query($sql,$binds);
    
  renderWithoutHeader("Customers/Companies/choose_company.php", array("companies"=>$companies,"flag"=>$f));
?>